import { eAccountComponents } from '@abp/ng.account';
import { ReplaceableComponents, ReplaceableRouteContainerComponent } from '@abp/ng.core';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { LoginComponent } from './login/login.component';

const routes: Routes = [
  {
    path: 'login',
    component: ReplaceableRouteContainerComponent,
    data: {
      replaceableComponent: {
        key: eAccountComponents.Login,
        defaultComponent: LoginComponent,
      } as ReplaceableComponents.RouteData<LoginComponent>,
      routeTabIgnore: true,
    },
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class AccountRoutingModule {}
